package com.gitee.target123.develop.pay;

import com.gitee.target123.develop.pay.wx.WxPayProperties;
import com.gitee.target123.develop.pay.ali.AliPayProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashMap;
import java.util.Map;

@ConfigurationProperties(prefix = "pay.map")
public class PayMapProperties {
    /**
     * 是否启用多个 微信支付
     */
    private boolean wxEnabled = false;

    private Map<String, WxPayProperties> wx = new HashMap<>();

    /**
     * 是否启用多个 微信支付
     */
    private boolean aliEnabled = false;

    private Map<String, AliPayProperties> ali = new HashMap<>();

    public boolean isWxEnabled() {
        return wxEnabled;
    }

    public void setWxEnabled(boolean wxEnabled) {
        this.wxEnabled = wxEnabled;
    }

    public Map<String, WxPayProperties> getWx() {
        return wx;
    }

    public void setWx(Map<String, WxPayProperties> wx) {
        this.wx = wx;
    }

    public boolean isAliEnabled() {
        return aliEnabled;
    }

    public void setAliEnabled(boolean aliEnabled) {
        this.aliEnabled = aliEnabled;
    }

    public Map<String, AliPayProperties> getAli() {
        return ali;
    }

    public void setAli(Map<String, AliPayProperties> ali) {
        this.ali = ali;
    }
}
